package com.javacrafting.mifos.domain;

import java.util.List;
import org.hibernate.criterion.Restrictions;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class LookupValueRepositoryImpl extends HibernateDaoSupport implements LookupValueRepository
{

	@SuppressWarnings("unchecked")
	public List<LookupValue> findByGroupId(final Integer groupId)
	{
		return (List<LookupValue>) getSession().createCriteria(LookupValueImpl.class) //
				.add(Restrictions.eq("groupId", groupId)) //
				.list();
	}

}
